<div class="fui-page fui-page-current member-log-page" ng-if="pagedata.op=='setpay'">
	<div class="fui-content">
		<div class="weui_cells_title" ><strong class="am-text-danger am-text-lg" style="font-size: 0.8rem;">设置支付密码</strong> / <small>Real&nbsp;paypwd</small></div>
		<div class="fui-cell-group">
				<div ng-if="pagedata.is_smscode==1" class="fui-cell must">
					<div class="fui-cell-label">手机号</div>
					<div class="fui-cell-info"><input type="text" class='fui-input' placeholder="请输入您的手机号"  ng-model="pagedata.info.mobile" /></div>
					<div class="fui-cell-remark noremark"><a class="btn btn-default btn-default-o btn-sm" style="line-height: 0.65rem;" ng-click="pagedata.send_smscode(pagedata.info.mobile)"  id="verify_code">获取验证码</a></div>
				</div>
				<div ng-if="pagedata.is_smscode==1" class="fui-cell must ">
					<div class="fui-cell-label ">验证码</div>
					<div class="fui-cell-info"><input type="text" class='fui-input' placeholder="请输入验证码" ng-model="pagedata.info.verify" /></div>
				</div>
				<div class="fui-cell must ">
					<div class="fui-cell-label ">支付密码</div>
					<div class="fui-cell-info"><input type="pasword" class='fui-input' placeholder="请输入密码" ng-model="pagedata.info.paypwd" /></div>
				</div>
				<div class="fui-cell must ">
					<div class="fui-cell-label ">确认密码</div>
					<div class="fui-cell-info"><input type="pasword" class='fui-input' placeholder="请输入密码" ng-model="pagedata.info.paypwded" /></div>
				</div>
		</div>
		<div class="weui_btn_area">
			<a class="weui_btn weui_btn_primary" href="javascript:" ng-click="post(pagedata.info,'post1')">保存修改</a>
		</div>
	</div>
</div>
<script>
scope.pagedata.send_smscode=function(mobile){
	if(!mobile){
		alert('请先填写手机号！');
	}
	if(scope.pagedata.sending){
		return false;
	}
	var params={'data':{'mobile':mobile},'op':'send'};
	params.callback=function(res){
		if(res=='success'){
			//发送成功，开始倒计时 
			scope.pagedata.sending=true;
			scope.message('已成功发送验证码到'+mobile+',请注意查收！','error');
			scope.count_down(60,'verify_code','秒后重新发送',function(){
				scope.pagedata.sending=false;
				$('#verify_code').text('重新发送');
			});
		}else{
			scope.message('验证码发送失败！');
		}
	}
	scope.post_json(params);
}
</script>
</div>
<div class="fui-page fui-page-current member-log-page" ng-if="pagedata.op=='idcard'">
	<div class="fui-content">
		<div class="weui_cells_title" ><strong class="am-text-danger am-text-lg" style="font-size: 0.8rem;">实名认证</strong> / <small>Real&nbsp;authentication</small></div>
		<div class="weui_cells weui_cells_form">
			<div class="weui_cell">
				<div class="weui_cell_hd"><label class="weui_label">真实姓名</label></div>
				<div class="weui_cell_bd weui_cell_primary">
					<input class="weui_input" type="text" ng-model="pagedata.info.truename" placeholder="请输入您的真实姓名">
				</div>
			</div>
			<div class="weui_cell">
				<div class="weui_cell_hd"><label class="weui_label">身份证号</label></div>
				<div class="weui_cell_bd weui_cell_primary">
					<input class="weui_input" type="text" ng-model="pagedata.info.idcard" placeholder="请输入您的身份证号">
				</div>
			</div>
		</div>
		<div class="weui_cells_title">上传身份证照片</div>
		<div class="weui_cells weui_cells_form">
				<div class="weui_cell">
						<div class="weui_cell_hd"><label class="weui_label">身份证正面</label></div>
							<div class="weui_cell_bd weui_cell_primary">
								<ul class="weui_uploader_files" ng-if="pagedata.info.idcard_front">
									  <li class="weui_uploader_file" style="background-image:url({{tomedia(pagedata.info.idcard_front)}})"></li>
								</ul>
								<div class="weui_uploader_input_wrp">
									 <input class="weui_uploader_input" ng-model="pagedata.info.idcard_front" ng-click="up_file(pagedata.info,'idcard_front','image')" accept="image/jpg,image/jpeg,image/png,image/gif" multiple="">
								</div>
							</div>
				</div>
				<div class="weui_cell">
						<div class="weui_cell_hd"><label class="weui_label">身份证背面</label></div>
							<div class="weui_cell_bd weui_cell_primary">
								<ul class="weui_uploader_files" ng-if="pagedata.info.idcard_behind">
									  <li class="weui_uploader_file" style="background-image:url({{tomedia(pagedata.info.idcard_behind)}})"></li>
								</ul>
								<div class="weui_uploader_input_wrp">
									 <input class="weui_uploader_input" ng-model="pagedata.info.idcard_behind" ng-click="up_file(pagedata.info,'idcard_behind','image')" accept="image/jpg,image/jpeg,image/png,image/gif" multiple="">
								</div>
							</div>
				</div>
		</div>
	
		<div class="weui_btn_area" ng-if="pagedata.info.idcard_check !=1 && pagedata.info.idcard_check !=2">
			<a class="weui_btn weui_btn_primary" href="javascript:" ng-click="post(pagedata.info,'post3')">提交</a>
		</div>
	</div>
</div>